package com.atguigu.order.exception;

import org.springframework.web.bind.annotation.RestControllerAdvice;

//@ResponseBody
//@ControllerAdvice
@RestControllerAdvice
public class GlobalExceptionHandler {
//    @ExceptionHandler(value = Throwable.class)
//    public String error(Throwable throwable) {
//        return throwable.getMessage();
//    }
}
